try:
    from core.device import Device
except (ModuleNotFoundError,ImportError):
    import sys,os
    sys.path.append(os.path.abspath('.'))
    from core.device import Device

def 